# 编写任务文件
import django
from celery import task
django.setup()
import time

@task
def say():
    time.sleep(10)
    print("hello world")

@task
def addnum(num):
    print(num+num)
    return num+num     # num+num的结果将存储到backend中